<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">


  <title>Document</title>
</head>

<body>
  <script>
    let uname = prompt('请输入姓名：');
    let age = prompt('请输入年龄：');
    let gender = prompt('请输入性别：');
    document.write('姓名：' + uname + '</br>年龄：' + age + '</br>性别：' + gender)
  </script>
</body>

</html>